<template>
  <div class="homeBox">
      <home-header></home-header>
  </div>
</template>

<script>
import HomeHeader from '../components/HomeHeader'
import List from '../components/list'
export default {
  data () {
      return {
          items: []
      }
  },
  components: {
    HomeHeader,
    List
  },
  created () {
      this.$http.get('/api/goods').then((data) => {
      this.items = data.body.data;
      })
  }
}
</script>

<style lang="css" scoped>

</style>
